package pt.me.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by user on 2017/12/11.
 */
@Controller
@RequestMapping("/")
public class IndexController {
    @RequestMapping("/index")
    public String index(ModelMap model){
        model.addAttribute("message","index");
        return "index";
    }
    @RequestMapping("/")
    public String home(ModelMap model){
        model.addAttribute("test", "test");
        return "home";
    }
}
